/**
 * @Title: LoadingDialog1.java
 * @Package com.sinoglobal.wallet.dialog
 * @Description: TODO(用一句话描述该文件做什么)
 * @author hpq
 * @date 2015-9-22 下午4:01:10
 */
	
package com.sinoglobal.wallet.dialog;

/**
 * @Title: LoadingDialog1.java
 * @Package com.sinoglobal.waitingMe.dialog
 * @Description: TODO(用一句话描述该文件做什么)
 * @author hpq
 * @date 2015-9-22 下午4:01:10
 */
import com.sinoglobal.wallet.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * @author hpq
 * @createdate 2015-9-22 下午4:01:10
 * @Description: TODO(用一句话描述该类做什么)
 */
public class LoadingDialog1 extends Dialog {

    private TextView tips_loading_msg;

    private String message = null;

    public LoadingDialog1(Context context, String message) {
    	super(context, R.style.dialog_windowFullscreen);
        this.message = message;
        this.setCancelable(false);
    }

	public LoadingDialog1(Context context, int theme, String message) {
		super(context, R.style.dialog_windowFullscreen);
		this.message = message;
		this.setCancelable(false);
	}         

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.wallet_view_tips_loading);
        tips_loading_msg = (TextView) findViewById(R.id.tips_loading_msg);
        tips_loading_msg.setText(this.message);
    }

    public void setText(String message) {
        this.message = message;
        tips_loading_msg.setText(this.message);
    }

    public void setText(int resId) {
        setText(getContext().getResources().getString(resId));
    }

}
